<?php
/**
 * Prado Portal.
 *
 * @author Steen Rabol <steen.rabol@gmail.com>
 * @link http://www.pradoportal.dk/
 * @copyright Copyright &copy; 2006,2007,2008 Steen Rabol
 * @license http://www.pradoportal.dk
 * @version $Id: PortalPrado.php 431 2011-01-05 11:58:18Z steen.rabol $
 *
 */


/**
 * Prodo Portal needs to add functionallity to the core Prado class
 */

require_once($frameworkPath . 'PradoBase.php');

class Prado extends PradoBase
{
	public static function localize($text, $parameters=array(), $catalogue=null, $charset=null)
	{
		$app = PortalApplication::getApplication();

		if(!is_array($parameters))
			$p = array($parameters);
		else
			$p = $parameters;
		return $app->Translate($text, $p);
	}
}

// From here it's a copy of the original prado.php
spl_autoload_register(array('Prado','autoload'));
Prado::initErrorHandlers();
require_once($frameworkPath . 'TApplication.php');
require_once($frameworkPath . 'TShellApplication.php');
//require_once($frameworkPath . 'prado.php');
?>